package net.runman.core.service.impl;

import java.io.Serializable;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.baomidou.framework.service.impl.SuperServiceImpl;

import net.runman.core.mapper.UsersMapper;
import net.runman.core.model.Users;
import net.runman.core.service.IUsersService;

/**
 *
 * Users 表数据服务层接口实现类
 *
 */
@Service
public class UsersServiceImpl extends SuperServiceImpl<UsersMapper, Users> implements IUsersService {

	@Override
	public boolean insert(Users entity) {
		return super.insert(entity);
	}

	@Cacheable(value = "usersCache", key ="#root.method.name.concat('-').concat(#id)")
	@Override
	public Users selectById(Serializable id) {
		return super.selectById(id);
	}

}